/**
 * 
 */
package com.sc.softmgr.business.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.acc.softmgr.model.SoftmgrProject;
import com.alibaba.fastjson.JSONObject;
import com.sc.softmgr.business.service.fallcallback.SoftmgetProjectFallback;
import com.sc.softmgr.common.web.DataGridObject;

/**
 * 
 * @content
 * 
 * @date 2017年6月12日
 * 
 * @author OprCalf
 * 
 */
@FeignClient(value = "SOFTMGR-PROJECT1", fallback = SoftmgetProjectFallback.class)
public interface ISoftmgetProjectFeignService {

	@RequestMapping(value = "softProject/searchSoftProject", method = RequestMethod.POST)
	public DataGridObject<SoftmgrProject> searchSoftProject(SoftmgrProject softmgrProject,
			@RequestParam("page") Integer page, @RequestParam("rows") Integer rows);

	@RequestMapping(value = "softProject/addSoftProject", method = RequestMethod.POST)
	public JSONObject addSoftProject(SoftmgrProject softmgrProject, @RequestParam("currentName") String currentName);

	@RequestMapping(value = "softProject/editSoftProject", method = RequestMethod.POST)
	public JSONObject editSoftProject(SoftmgrProject softmgrProject, @RequestParam("currentName") String currentName);

	@RequestMapping(value = "softProject/{id}/searchSoftProject", method = RequestMethod.GET)
	public JSONObject searchSoftProject(@PathVariable("id") Integer id);

	@RequestMapping(value = "softProject/removeSoftProject", method = RequestMethod.POST)
	public JSONObject removeSoftProject(@RequestParam("id") Integer id);

	@RequestMapping(value = "softProject/getSoftProjects", method = RequestMethod.GET)
	public String getSoftProjects();
}
